﻿// Copyright: 2012
// Author: Minh Vu - YoungJ
// File: FeedItem.cs - PhoneAppRssReader - PhoneAppRssReader
// Time: 1:19 AM 04/18/2012

using System;

namespace PhoneAppRssReader.Entity
{
    public class FeedItem : MyBase
    {
        private string title;
        public string Title
        {
            get { return title; }
            set
            {
                if (value == null) return;
                title = value;
                OnPropertyChanged("Title");
            }
        }

        private string description;
        public string Description
        {
            get { return description; }
            set
            {
                if (value == null) return;
                description = value;
                OnPropertyChanged("Description");
            }
        }

        private DateTime pubDate;
        public DateTime PubDate
        {
            get { return pubDate; }
            set
            {
                pubDate = value;
                OnPropertyChanged("PubDate");
            }
        }

        private Uri link;
        public Uri Link
        {
            get { return link; }
            set
            {
                if (value == null) return;
                link = value;
                OnPropertyChanged("Link");
            }
        }

        private bool isNew;
        public bool IsNew
        {
            get { return isNew; }
            set
            {
                if (value == isNew) return;
                isNew = value;
                OnPropertyChanged("IsNew");
            }
        }
    }
}